﻿using JTTD.Common.Enum;
using System;
using System.Collections.Generic;
using System.Text;
using JTTD.Common.Helper;

namespace JTTD.Domain.Dtos.ShopCoupon.Response
{
    /// <summary>
    /// 店铺优惠券
    /// </summary>
    public  class ShopCouponResponseDto:BaseResponseDto
    {
        /// <summary>
        /// 店铺优惠券编号
        /// </summary>
        public string ShopCouponNumber { get; set; }
        /// <summary>
        /// 开始时间
        /// </summary>
        public DateTime StartTime { get; set; }
        /// <summary>
        /// 开始时间
        /// </summary>
        public string StartTimeStr => StartTime.ToString("yyyy-MM-dd HH:mm:ss");
        /// <summary>
        /// 结束时间
        /// </summary>
        public DateTime EndTime { get; set; }
        /// <summary>
        /// 结束时间
        /// </summary>
        public string EndTimeStr => EndTime.ToString("yyyy-MM-dd HH:mm:ss");

        /// <summary>
        /// 优惠券类型（满减优惠券：0，代金券：1）
        /// </summary>
        public ShopCouponTypeEnum Type { get; set; }

        /// <summary>
        /// 优惠券类型
        /// </summary>
        public string TypeStr => Type.GetDescription();
        /// <summary>
        /// 满足金额
        /// </summary>
        public decimal FullAmount { get; set; }
        /// <summary>
        /// 优惠券/代金券金额
        /// </summary>
        public decimal CouponAmount { get; set; }
        /// <summary>
        /// 领取时间
        /// </summary>
        public DateTime CreateTime { get; set; }
        /// <summary>
        /// 领取时间
        /// </summary>
        public string CreateTimeStr => CreateTime.ToString("yyyy-MM-dd HH:mm:ss");

        /// <summary>
        /// 用户id
        /// </summary>
        public int UserId { get; set; }

        /// <summary>
        /// 会员号
        /// </summary>
        public string UserNumber { get; set; }

        /// <summary>
        /// 是否使用
        /// </summary>
        public bool IsUse { get; set; }

        /// <summary>
        /// 店铺id
        /// </summary>
        public int ShopId { get; set; }
        /// <summary>
        /// 店铺名称
        /// </summary>
        public string ShopName { get; set; }
    }
}
